{ From user A Lumens, Project Hospitalcost at Tue, May 25, 1993 9:08 PM}
{ System Variables with non-default values: }
Numberwidth := 7
Samplesize := 150
Distribsize := 30
Windows := 2
Sampletype := 1
Usetable := 0
Typechecking := 1
Checking := 1
Showundef := 0
Saveoptions := 2
Savevalues := 0
{ Non-default Time SysVar value: }
Time := Sequence(0,20)
Attribute Reference
Project Hospitalcost
Title: Hospital Cost
Description: Hospital cost is a model that evaluates the transitions of a hospital patient between an intensive-care unit (ICU), a ward, home and the morgue, over time.~
~
The locations are specified as strings: 'Morgue', 'ICU', 'Ward', and 'Home'.
Author: Tom Paterson, Strategic Decisions Group~
Modifications 2/20/93 for Demos 2.5a by Brian Arnold
Description: The patient location is calculated as a dynamic function, where the future location depends on the current location and a probability distribution describing possible next locations.~
~
The initial patient location (the first parameter to Dynamic) is specified, and an If Then Else statement figures out whether to use a Chance distribution to figure out the next location, given the current location.
Definition: Dynamic(Initial_loc,
If (Patient_loc[Time-1] = 'ICU' ) Then
ChanceDist( ICU_outcomes, ICU_Probs )
Else If (Patient_loc[Time-1] = 'Ward' )Then
ChanceDist( Ward_outcomes, Ward_Probs )
Else
Patient_loc[Time-1])
Location: 256,104
Nodesize: 48,20
Windstate: 1,603,157
Valuestate: 1,297,309,640,428,0,SAMP
Reformval: [Run ,Time ]
Chance Hosp_cost
Title: Hospital~
Cost
Units: $
Description: Cumulative hospital cost, over time.
Definition: Cumulate(
if (Patient_loc = 'ICU') then 1000 else
if (Patient_loc = 'Ward') then 100 else
0, Time)
Location: 256,208
Nodesize: 48,20
Windstate: 1,152,410
Valuestate: 1,380,151,416,303,1,MEAN
Fontstyle: Palatino, 12
Objective P_survival
Title: Probability~
of Survival
Description: Probability of survival is calculated as the mean value for patient location Survival (0..1) given distributions of patient locations over time.